package org.threebitsoftware.tbb.dao;

import org.apache.log4j.Logger;


public class Address implements DeletableDomainObjectInterface {

	static Logger cLogger = Logger.getLogger(Address.class);
	
	String cStrStreet1 = "";
	String cStrStreet2 = "";
	String cStrStreet3 = "";
	
	String cStrCountry = "";
	String cStrZipCode = "";
	String cStrProvince = "";
	String cStrCity = "";
	String cStrDescription = "";
	
	int iIdContact = -1;
	int iIdAddress = -1;
	int iIdAppUser = -1;
	
	boolean markedForDeletion = false;

	public Address()
	{
		
	}
	
	

	public Address(String strStreet1, String strStreet2, String strStreet3,
			String strCountry, String strZipCode, String strProvince,
			String strCity, String strDescription) {
		super();
		cStrStreet1 = strStreet1;
		cStrStreet2 = strStreet2;
		cStrStreet3 = strStreet3;
		cStrCountry = strCountry;
		cStrZipCode = strZipCode;
		cStrProvince = strProvince;
		cStrCity = strCity;
		cStrDescription = strDescription;
	}

	public Address(String strStreet1, String strStreet2, String strStreet3,
			String strCountry, String strZipCode, String strProvince,
			String strCity, String strDescription, int idContact, int idAddress) {
		super();
		cStrStreet1 = strStreet1;
		cStrStreet2 = strStreet2;
		cStrStreet3 = strStreet3;
		cStrCountry = strCountry;
		cStrZipCode = strZipCode;
		cStrProvince = strProvince;
		cStrCity = strCity;
		cStrDescription = strDescription;
		iIdContact = idContact;
		iIdAddress = idAddress;
	}
	
	public String toString() {
		return "Address Object = S1: " + cStrStreet1 + " | S2: " + cStrStreet2 
			+ " | S3: " + cStrStreet3 + " | Ct: " + cStrCity + " | P: " + cStrProvince
			+ " | Z: " + cStrZipCode + " | Co: " + cStrCountry + " | D: "
			+ cStrDescription + " | idC: " + iIdContact + " | idA: " + iIdAddress;
	}
	
	/*
	 * Getters and Setters
	 */

	/**
	 * @return the cStrStreet1
	 */
	public String getStreet1() {
		return cStrStreet1;
	}

	/**
	 * @param strStreet1 the cStrStreet1 to set
	 */
	public void setStreet1(String strStreet1) {
		cStrStreet1 = strStreet1;
	}

	/**
	 * @return the cStrStreet2
	 */
	public String getStreet2() {
		return cStrStreet2;
	}

	/**
	 * @param strStreet2 the cStrStreet2 to set
	 */
	public void setStreet2(String strStreet2) {
		cStrStreet2 = strStreet2;
	}

	/**
	 * @return the cStrStreet3
	 */
	public String getStreet3() {
		return cStrStreet3;
	}

	/**
	 * @param strStreet3 the cStrStreet3 to set
	 */
	public void setStreet3(String strStreet3) {
		cStrStreet3 = strStreet3;
	}

	/**
	 * @return the cStrCountry
	 */
	public String getCountry() {
		return cStrCountry;
	}

	/**
	 * @param strCountry the cStrCountry to set
	 */
	public void setCountry(String strCountry) {
		cStrCountry = strCountry;
	}

	/**
	 * @return the cStrZipCode
	 */
	public String getZipCode() {
		return cStrZipCode;
	}

	/**
	 * @param strZipCode the cStrZipCode to set
	 */
	public void setZipCode(String strZipCode) {
		cStrZipCode = strZipCode;
	}

	/**
	 * @return the cStrProvince
	 */
	public String getProvince() {
		return cStrProvince;
	}

	/**
	 * @param strProvince the cStrProvince to set
	 */
	public void setProvince(String strProvince) {
		cStrProvince = strProvince;
	}

	/**
	 * @return the cStrCity
	 */
	public String getCity() {
		return cStrCity;
	}

	/**
	 * @param strCity the cStrCity to set
	 */
	public void setCity(String strCity) {
		cStrCity = strCity;
	}

	/**
	 * @return the cStrDescription
	 */
	public String getDescription() {
		return cStrDescription;
	}

	/**
	 * @param strDescription the cStrDescription to set
	 */
	public void setDescription(String strDescription) {
		cStrDescription = strDescription;
	}

	/**
	 * @return the iIdContact
	 */
	public int getIdContact() {
		return iIdContact;
	}

	/**
	 * @param idContact the iIdContact to set
	 */
	public void setIdContact(int idContact) {
		iIdContact = idContact;
	}

	/**
	 * @return the iIdAddress
	 */
	public int getIdAddress() {
		return iIdAddress;
	}

	/**
	 * @param idAddress the iIdAddress to set
	 */
	public void setIdAddress(int idAddress) {
		iIdAddress = idAddress;
	}

	public void markForDeletion(boolean deleteMe)
	{
		markedForDeletion = deleteMe;
	}
	
	public boolean isMarkedForDeletion()
	{
		return markedForDeletion;
	}
	
	public int getIdAppUser() {
		return iIdAppUser;
	}

	public void setIdAppUser(int idAppUser) {
		iIdAppUser = idAppUser;
	}

}
